package com.jf.springmvc.exception;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User:22954
 * Date:2024-11-05
 * Time:17:44
 */
@ResponseStatus(reason = "年龄需在1-150之间",value = HttpStatus.BAD_REQUEST)
public class AgeException extends RuntimeException{
    public static String EXCEPTION_NOTE = "年龄需在1-150之间";
    public AgeException() {
        super(EXCEPTION_NOTE);
    }

}
